home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 13 / FreelogHS13.iso / P To P / eMule0.24b-sivka.v4b1-bin / Webserver / eMule.js < prev    next >
Text File  |  2003-01-09  |  3KB  |  188 lines

  1. // Server
  2.  
  3. function connect(id)
  4. {
  5.     queue.pop("ServerConnect.emule?id="+id);
  6. }
  7.  
  8. function showserver(sort,dir)
  9. {
  10.     content.location.href="ServerView.emule?sort="+sort+"&dir="+dir;
  11. }
  12.  
  13. function updateServlist()
  14. {
  15.   queue.pop("ServerListUpdate.emule");
  16. }
  17.  
  18. function updateServerlistRowSize(id,size)
  19. {
  20.   queue.pop("ServerListUpdateRowWidth.emule?id="+id+";size="+size);
  21. }
  22.  
  23. function ServerlistDblclick(id)
  24. {
  25.   connect(id);
  26. }
  27.  
  28. function deleteServer(id)
  29. {
  30.   queue.pop("ServerDelete.emule?id="+id);
  31. }
  32.  
  33. function setPrioOfServer(id,prio)
  34. {
  35.   queue.pop("ServerPriority.emule?id="+id+";prio="+prio);
  36. }
  37.  
  38. function updateServerMsg()
  39. {
  40.   queue.pop("ServerInfoUpdate.emule");
  41. }
  42.  
  43. function updateServerLog(startline)
  44. {
  45.   queue.pop("ServerLogUpdate.emule?startline="+startline);
  46. }
  47.  
  48. function addServer(ip, port, name)
  49. {
  50.   queue.pop("ServerNew.emule?ip="+ip+";port="+port+";name="+name);
  51.   updateServlist();
  52. }
  53.  
  54. function refreshServer(servermet)
  55. {
  56.     queue.pop("ServerMetRefresh.emule?servermet="+servermet);
  57.   setTimeout("updateServlist();",20000);
  58. }
  59.  
  60. function setServerStatic(id, stat)
  61. {
  62.   queue.pop("ServerStatic.emule?id="+id+";static="+stat);
  63.   updateServlist();
  64. }
  65.  
  66.  
  67. // Transfer
  68.  
  69. function showtransfer(sort,dir)
  70. {
  71.     content.location.href="TransferView.emule?sort="+sort+"&dir="+dir;
  72. }
  73.  
  74. function setFilePrio(id,prio)
  75. {
  76.     queue.pop("TransferPriority.emule?id="+id+";prio="+prio);
  77. }
  78.  
  79. function setFileStatus(id,status)
  80. {
  81.     queue.pop("TransferStatus.emule?id="+id+";status="+status);
  82. }
  83.  
  84. function setCreateEd2kLink(id,html)
  85. {
  86.     queue.pop("TransferCreateEd2kLink.emule?id="+id+";html="+html);
  87. }
  88.  
  89. function clearComplete()
  90. {
  91.     queue.pop("TransferClearCompleted.emule");
  92. }
  93.  
  94. function updateDownlist()
  95. {
  96.     queue.pop("TransferDownListUpdate.emule");
  97. }
  98.  
  99. function updateProcessImage(id)
  100. {
  101.     queue.pop("TransferRenderProgressBar.emule?id="+id);
  102. }
  103.  
  104. function updateDownloadlistRowSize(id,size)
  105. {
  106.   queue.pop("TransferDownListUpdateRowWidth.emule?id="+id+";size="+size);
  107. }
  108.  
  109. function updateUplist()
  110. {
  111.     queue.pop("TransferUpListUpdate.emule");
  112. }
  113.  
  114. function updateUploadlistRowSize(id,size)
  115. {
  116.   queue.pop("TransferUpListUpdateRowWidth.emule?id="+id+";size="+size);
  117. }
  118.  
  119. // Search
  120.  
  121. function showsearch()
  122. {
  123.     content.location.href="SearchView.emule";
  124. }
  125.  
  126. function enterED2KLink(link)
  127. {
  128.     queue.pop("SearchEnterED2KLink.emule?ed2k="+link);
  129. }
  130.  
  131. function startWebSearch(name, type)
  132. {
  133.   var adr=encodeURI("http://www.filedonkey.com/fdsearch/index.php?media="+type+"&pattern="+name);
  134.   window.open(adr,"_blank");
  135.   content.in_webname.value="";
  136. }
  137.  
  138. function startSearch(name, global, min, max, type)
  139. {
  140.   queue.pop("SearchStart.emule?name="+name+";global="+global+";min="+min+";max="+max+";type="+type);
  141. }
  142.  
  143. function updateSearchlistRowSize(id,size)
  144. {
  145.   queue.pop("SearchListUpdateRowWidth.emule?id="+id+";size="+size);
  146. }
  147.  
  148. // Shared View
  149.  
  150. function showshared()
  151. {
  152.   alert("Not implemneted yet");
  153. }
  154.  
  155. // Messages View
  156.  
  157. function showmessages()
  158. {
  159.   alert("Not implemneted yet");
  160. }
  161.  
  162. // IRC View
  163.  
  164. function showirc()
  165. {
  166.   alert("Not implemneted yet");
  167. }
  168.  
  169. // Statistics View
  170.  
  171. function showstatistics()
  172. {
  173.   alert("Not implemneted yet");
  174. }
  175.  
  176. // Preferences View
  177.  
  178. function showpreferences()
  179. {
  180.   alert("Not implemneted yet");
  181. }
  182.  
  183. // All Views
  184.  
  185. function toggleHeadline(tabcol,value)
  186. {
  187.   queue.pop("toggleHeadline.emule?tabcol="+tabcol+";value="+value);
  188. }